
package org.example.canteen.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;


@Data
@TableName("ct_foods_material")
@Document(indexName = "foods_materials")
public class FoodsMaterial {

    @Id
    @Field(type= FieldType.Keyword)
    private Long id;

    @Field(type= FieldType.Text, analyzer = "ik_max_word")
    private String name;            //名称

    @Field(type= FieldType.Text, analyzer = "ik_max_word")
    private String status;  //状态


}
